/* الرأس المتجاوب */
.header {
    width: 90%;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
}

.contact-home {
    width: 100%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-home:hover {
    color: var(--text-light) !important;
    font-weight: bold;
}

.contact-home-1 {
    width: 100%;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-home-1:hover {
    color: var(--primary-color);
    text-decoration: wavy;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    padding: 5px 12px !important;
    border: 1px solid var(--primary-color) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary:hover {
    background-color: var(--primary-color) !important;
    color: var(--bg-dark) !important;
    transform: scale(0.96);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-secondary-content {
    background-color: var(--primary-color) !important;
    color: var(--bg-dark) !important;
    transform: scale(1);
}

.btn-secondary-content:hover {
    background-color: transparent !important;
        color: var(--primary-color) !important;
        font-size: 1.1rem !important;
        transition: all 0.3s ease;
        padding: 5px 12px !important;
        border: 1px solid var(--primary-color) !important;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.nav {
    display: block;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 50px;
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 0;
}

.nav ul li {
    align-content: center;
    display: inline;
}

.nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.4s ease-in-out;
    display: inline-block;
}


.nav ul li a.active {
    color: var(--primary-color);
    font-weight: bold;
}

.nav ul li a.active:hover {
    color: var(--text-light);
}

.menu-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.close-menu {
    display: none;
}

.social-icons.hamburger-social {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

/* دعم المتصفحات التي لا تدعم تأثير البلور */
@supports not (backdrop-filter: blur(10px)) {
    .header,
    .nav {
        background: rgba(0, 0, 0, 0.9);
    }
}


@media (max-width: 1200px) {
    .header {
        width: 95%;
        padding: 8px 10px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 00;
    }

    .logo {
        position: relative;
        z-index: 00;
    }

    .nav.active ~ .menu-toggle,
    .nav.active ~ .logo {
        display: none;
    }

    .close-menu {
        display: none;
        position: absolute;
        top: 20px;
        left: 20px;

        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;

        padding: 8px;
    }

    .nav.active .close-menu {
        display: block;
    }

    .nav {
        display: none;
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        padding: 20px;
        border-radius: 0;
        z-index: 500;

        overflow-y: auto;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        height: 20%;
        justify-content: center;
        align-items: center;
    }

    .btn-secondary {
        padding: 8px 15px;
        display: inline-flex;
        align-items: center;
    }

    .social-icons.hamburger-social {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 15px;
        width: 100%;
    }

    .hamburger-social a {
        margin: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-social img {
        width: 24px;
        height: 24px;
        transition: opacity 0.3s ease;
    }

    .hamburger-social img:hover {
        opacity: 0.7;
    }
}

/* تعديلات إضافية للشاشات الأصغر */
@media (max-width: 768px) {
    .header {
        width: 95%;
        top: 10px;
        padding: 8px 10px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        width: 50px !important;
        height: 50px !important;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        height: 50%;
        justify-content: center;
        align-items: flex-start; /* ⬅️ غيرنا من center إلى flex-start */
        padding-top: 60px;
        padding-bottom: 30px;
        margin-bottom: 30px;
        padding-left: 20px; 
        padding-right: 20px;
    }
    
    .nav ul a {
        text-align: left;
        width: 100%; /* ⬅️ خلي الرابط ياخد كامل العرض حتى يظهر النص مضبوط */
    }

    /* إزالة ستايل زر "تواصل معي" وإخفاء الأيقونة على الموبايل */
    .nav ul a.btn.btn-secondary {
        background: none;
        border: none;
        padding: 0;
        color: var(--text-light);
        font-weight: 500;
        display: inline-block;
    }

    .nav ul a.btn.btn-secondary svg {
        display: none;
    }
}






 /* تنسيق الفوتر */
 .main-footer {
     background-color: var(--bg-darker);
     padding: 50px 40px;
     width: 102%;
     text-align: center;
     margin-top: 7rem;
     margin-bottom: 0px;
     color: var(--border-light);
     border-top: 2px solid var(--border-light);
 }

 .main-footer h2 {
     font-size: 2rem;
     font-weight: 700;
     margin-bottom: 25px;
     background: linear-gradient(135deg, #FFD01B, #ffa41b);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
 }

 .social-icons {
     display: flex;
     justify-content: center;
     gap: 15px;
     margin-bottom: 20px;
     flex-wrap: wrap;
 }

 .social-icons a {
     width: 50px;
     height: 50px;
     border-radius: 50px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: 0.1s;
     position: relative;
     z-index: 0;
 }

 .social-icons a svg {
     width: 30px;
     height: 30px;
     color: white;
     z-index: 9;
 }

 .social-icons a::before {
     content: "";
     position: absolute;
     width: 55px;
     height: 55px;
     background-color: #212121;
     border-radius: 50px;
     z-index: -1;
     border: 0px solid rgba(255, 255, 255, 0.411);
     transition: 0.4s;
 }

 .social-icons a:hover::before {
     width: 0px;
     height: 0px;
 }

 .social-icons a:active {
     transform: scale(0.85);
 }

 /* تنسيق كل منصة بحسب ألوانها */
 .facebook {
     background: linear-gradient(120deg, #1877f2, #0a56c0);
 }

 .instagram {
     background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
 }

 .linkedin {
     background: linear-gradient(120deg, #0077b5, #004e7c);
 }

 .telegram {
     background: linear-gradient(120deg, #0088cc, #005f99);
 }

 .x {
     background: #000;
 }

 .youtube {
     background: rgb(255, 33, 33);
 }

 .behance {
     background: linear-gradient(120deg, #1769ff, #0050e0);
 }

 .footer-line {
     margin: 20px 0;
 }

 .footer-line svg {
     width: 100%;
     max-width: 600px;
     height: 2px;
     margin-bottom: 2rem;
     margin-top: 1rem;
 }

 .footer-text {
     color: #f5f5f5;
     font-size: 16px;
     margin: 0;
     padding-bottom: 1rem;
 }

 /* تنسيق العرض العام */
 .content {
     padding: 40px 20px;
     color: white;
     text-align: center;
 }


 @media (max-width: 768px) {
     .main-footer {
         padding: 40px 20px;
         width: 100%;
         margin-top: 4rem;
     }

     .main-footer h2 {
         font-size: 1.6rem;
     }

     .social-icons {
         gap: 10px;
         margin-bottom: 15px;
     }

     .social-icons a {
         width: 45px;
         height: 45px;
     }

     .social-icons a::before {
         width: 48px;
         height: 48px;
     }

     .social-icons a svg {
         width: 24px;
         height: 24px;
     }

     .footer-line svg {
         max-width: 90%;
         height: 1px;
         margin-bottom: 1.5rem;
     }

     .footer-text {
         font-size: 14px;
         line-height: 1.7;
     }

     .content {
         padding: 30px 15px;
     }
 }

 @media (max-width: 576px) {
     .main-footer h2 {
         font-size: 1.4rem;
     }

     .social-icons {
         justify-content: center;
     }

     .social-icons a {
         width: 40px;
         height: 40px;
     }

     .social-icons a::before {
         width: 42px;
         height: 42px;
     }

     .social-icons a svg {
         width: 20px;
         height: 20px;
     }

     .footer-text {
         font-size: 13px;
     }
 }